import requests from '@/utils/request';

// 查询
export const reqGetMajorList = (params) =>
  requests.post('/admin/major/query', params);

// 增加
export const reqBatchAddMajor = (params) =>
  requests.post('/admin/major/add', params);

// 编辑
export const reqEidtMajor = (params) =>
  requests.put('/admin/major/edit', params);

// 删除
export const reqBatchDelMajor = (params) =>
  requests.post('/admin/major/remove', params);

// 根据院系编号 查询 专业集合
export const reqGetMajorListByDepartmentId = (params) =>
  requests.get(`/admin/major/queryForIdAndNameByDepartmentId/${params}`);

// 根据名称查专业
export const reqCheckMajorNameIsRepeat = (params) =>
  requests.get(`/admin/major/queryForCheckRepeatName/${params}`);

// 查询专业编号与名称列表
export const reqGetMajorListForIdAndName = () =>
  requests.get('/admin/major/queryForIdAndName');
